import http from '../../utils/http'


// 获取当前会员详细信息
const getMyWallet = (data) => {
    return http.post('member/sysMemberHuifuWalletInfo/myWallet', data)
}

// 获取第三方支付详细信息
const getMyWalletInfo = (data) => {
    return http.get('member/sysMemberWallet/walletInfo')
}

// 易宝钱包注册-登录
const yiBaologinOrRegister = (data) => {
    return http.post('/member/sysMemberWallet/yibaoWallet',data)
}

// 汇付钱包注册-登录
const huiFuloginOrRegister = (data) => {
    return http.post('member/sysMemberWallet/myWallet',data)
}

// 获取第三方支付开启/关闭
const getpayFront = (data) => {
    return http.get(`/order/orderMain/payFront/${data.orderId}`,data)
}
export default {
    getMyWallet,
    getMyWalletInfo,
    yiBaologinOrRegister,
    huiFuloginOrRegister,
    getpayFront
}
